# -*- coding: utf8 -*-
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


# 交易流程异常
FAILEDOPERATION_TRANSACTIONEXCEPTION = 'FailedOperation.TransactionException'

# 内部错误。
INTERNALERROR = 'InternalError'

# 请求控制器发生错误。
INTERNALERROR_CONTROLREQUESTERROR = 'InternalError.ControlRequestError'

# 设备密钥已存在。
INTERNALERROR_DUPLICATEDATAKEY = 'InternalError.DuplicateDataKey'

# 设备名已存在。
INTERNALERROR_DUPLICATEDEVICENAME = 'InternalError.DuplicateDeviceName'

# 文件读写异常。
INTERNALERROR_FILEIOERROR = 'InternalError.FileIOError'

# 监控数据请求错误。
INTERNALERROR_MONITORDATAREQUESTERROR = 'InternalError.MonitorDataRequestError'

# 智研流量数据请求错误。
INTERNALERROR_NETWORKINFOREQUESTERROR = 'InternalError.NetworkInfoRequestError'

# 预置密钥尚未创建。
INTERNALERROR_UNDEFINEDENCRYPTEDKEY = 'InternalError.UndefinedEncryptedKey'

# 参数错误。
INVALIDPARAMETER = 'InvalidParameter'

# 参数取值错误。
INVALIDPARAMETERVALUE = 'InvalidParameterValue'

# 超过配额限制。
LIMITEXCEEDED = 'LimitExceeded'

# 操作被拒绝。
OPERATIONDENIED = 'OperationDenied'

# 设备不存在或当前状态为不可用。
OPERATIONDENIED_DEVICENOTFOUND = 'OperationDenied.DeviceNotFound'

# SN已存在
OPERATIONDENIED_DUPLICATESN = 'OperationDenied.DuplicateSN'

# 输入SN对应的硬件已经激活
OPERATIONDENIED_HARDWAREHASACTIVATED = 'OperationDenied.HardwareHasActivated'

# 输入SN对应的硬件不存在。
OPERATIONDENIED_HARDWARENOTEXIST = 'OperationDenied.HardwareNotExist'

# 非法请求，可能是重放攻击、伪造攻击。
OPERATIONDENIED_ILLEGALREQUEST = 'OperationDenied.IllegalRequest'

# 余额不足
OPERATIONDENIED_INSUFFICIENTBALANCE = 'OperationDenied.InsufficientBalance'

# 互通规则CIDR重叠
OPERATIONDENIED_L3CIDROVERLAP = 'OperationDenied.L3CidrOverLap'

# 互通规则数超过最大限制150条
OPERATIONDENIED_L3CONNECTIONOVERSIZE = 'OperationDenied.L3ConnectionOverSize'

# 资源包已经变配或续费
OPERATIONDENIED_MODIFIEDORRENEWED = 'OperationDenied.ModifiedOrRenewed'

# 无支付权限
OPERATIONDENIED_NOTALLOWEDTOPAY = 'OperationDenied.NotAllowedToPay'

# 重复购买
OPERATIONDENIED_REPEATPURCHASE = 'OperationDenied.RepeatPurchase'

# 截断开关已经被开启
OPERATIONDENIED_TRUNCFLAGON = 'OperationDenied.TruncFlagOn'

# 未实名认证
OPERATIONDENIED_UNAUTHORIZEDUSER = 'OperationDenied.UnauthorizedUser'

# 当前账号尚未注册为厂商。
OPERATIONDENIED_VENDORNOTREGISTER = 'OperationDenied.VendorNotRegister'

# 资源被占用。
RESOURCEINUSE = 'ResourceInUse'

# 资源不存在。
RESOURCENOTFOUND = 'ResourceNotFound'

# 资源不可用。
RESOURCEUNAVAILABLE = 'ResourceUnavailable'

# 未授权操作。
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'

# 未验证服务权限
UNAUTHORIZEDOPERATION_NOPERMISSION = 'UnauthorizedOperation.NoPermission'

# 直播服务未开通
UNAUTHORIZEDOPERATION_UNOPENEDLIVESERVICE = 'UnauthorizedOperation.UnopenedLiveService'
